ShortPixel\Model\Image\ImageModel D

Total Complexity 266
Dependencies 4
Dependents 8
Total lines 1,232
Lines of code 854
Logical lines of code 501
Comment lines 102
Methods 48
Properties 11

Methods 48

Method Rating Maintainability Complexity Lines of code
handleOptimized()
C
30 22 122
createParamList()
B
44 20 40
getProcessableReason()
B
42 16 52
createBackup()
A
41 13 62
getCountOptimizeData()
A
46 13 39
handleOptimizedFileType()
A
48 13 32
getImageType()
A
48 11 35
deleteTempFiles()
A
52 11 26
isProcessable()
A
57 11 15
restore()
A
41 7 65
isProcessableSize()
A
54 10 19
isRestorable()
A
47 8 38
isPathExcluded()
A
52 9 23
isSizeExcluded()
A
53 8 21
isProcessableFileType()
S
58 8 14
handleWebp()
S
49 6 31
setImageSize()
S
58 7 16
isImage()
S
55 6 22
onDelete()
S
60 6 13
handleAvif()
S
53 5 21
getImprovement()
S
58 5 15
get()
S
63 5 11
matchExludeRegexPattern()
S
63 4 11
setMeta()
S
60 3 15
getMeta()
S
62 3 12
matchExcludePattern()
S
66 3 9
setAvif()
S
71 3 5
isProcessableAnyFileType()
S
65 3 9
setWebp()
S
71 3 5
getReason()
S
67 3 8
exists()
S
68 2 8
isOptimized()
S
68 2 8
isExtensionExcluded()
S
67 2 8
isOptimizePrevented()
S
100 1 0
loadMeta()
S
100 1 0
fs()
S
80 1 3
getImprovements()
S
100 1 0
toClass()
S
81 1 3
preventNextTry()
S
100 1 0
hasMeta()
S
79 1 3
resetPrevent()
S
100 1 0
__construct()
S
80 1 3
__get()
S
80 1 3
getWebp()
S
80 1 3
getAvif()
S
80 1 3
saveMeta()
S
100 1 0
recordChanged()
S
81 1 3
getOptimizeUrls()
S
100 1 0